import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui'
import http from './utils/request';
import VueWechatTitle from 'vue-wechat-title'
import './styles.scss'
import "./style/common.scss";
import {Message} from 'element-ui';
import empty from "./utils/common";


Vue.use(ElementUI)
Vue.use(VueWechatTitle)
Vue.config.productionTip = false


let instance = http();
Vue.prototype.$http = instance
Vue.prototype.$message = Message
//配置baseUrl
instance.defaults.baseURL = '/api'

Vue.filter('nopic', function (val) {
    if (empty(val)) {
        val = require('@/assets/nopic.jpg');
    }
    return val;
});



new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
